package example.documentbased.documentModule
{
	import example.documentbased.documentModule.controller.DocumentController;
	import example.documentbased.documentModule.controller.GetDocumentContentCommand;
	import example.documentbased.documentModule.controller.IDocumentController;
	import example.documentbased.documentModule.mediators.DocumentModuleViewMediator;
	import example.documentbased.documentModule.views.DocumentModuleView;
	
	import flash.display.DisplayObject;
	
	import org.etherframework.core.Module;
	
	public class DocumentModule extends Module
	{
		public function DocumentModule(view:DisplayObject)
		{
			super(view);
		}
		
		override public function start():void
		{
			mediators.addMediator(DocumentModuleView, DocumentModuleViewMediator);
			dependencies.addClass(DocumentController, IDocumentController);
			dependencies.addClass(GetDocumentContentCommand);
			
			//TODO:
			// Remove Context.type becaue we will use custom context which is type itself
		}
	}
}